@if (!isset($tag))
    {{ ''; $tag = 'td' }}
@endif
@if (!isset($type))
    {{ ''; $type = 'text' }}
@endif
@if (!isset($class))
    {{ ''; $class = 'input-small' }}
@endif
@if (!isset($title))
    {{ ''; $title = ucwords(str_replace('_', ' ', $field)) }}
@endif
@if (Input::old($field))
    {{ ''; $value = Input::old($field) }}
@else
    {{ ''; $value = isset($value) ? $value : ''; }}
@endif
<{{ $tag }}{{ $errors->first($field, ' class="control-group error"') }}>
<input class="{{ $class }}" placeholder="{{ $title }}" title="{{ $title }}" name="{{ $field }}" type="{{ $type }}" value="{{ $value }}">
{{ $errors->first($field, '<span class="help-inline">:message</span>') }}
</{{ $tag }}>